cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

find_package(LibNav REQUIRED)
include_directories(${LibNav_INCLUDE_DIRS})
set(LIBS ${LibNav_LIBRARIES})

ADD_LIBRARY(czcs
  czcscaleg.f
  czsuba.f
  satang.f
  subsatxy.f
)

target_link_libraries(czcs ${LIBS})

install (TARGETS czcs DESTINATION lib)
